package com.ruoyi.applet.service.impl;

import java.util.List;

import com.ruoyi.applet.domain.vo.UserAddress;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.applet.mapper.AddressMapper;
import com.ruoyi.applet.domain.Address;
import com.ruoyi.applet.service.IAddressService;

import javax.annotation.Resource;

/**
 * 地址Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-04
 */
@Service
public class AddressServiceImpl implements IAddressService 
{
    @Resource
    private AddressMapper addressMapper;

    @Override
    public UserAddress selectAllByAddressUsrId(Long usrId) {
        return addressMapper.selectAllByAddressUsrId(usrId);
    }

    @Override
    public List<UserAddress> selectAllByAddressUsrIdList(Long usrId) {
        return addressMapper.selectAllByAddressUsrIdList(usrId);
    }

    @Override
    public UserAddress selectAllByAddressUsrIdAddress(Long usrId, Long addressId) {
        return addressMapper.selectAllByAddressUsrIdAddress(usrId, addressId);
    }
}
